﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class MasterPage : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        txtQuery.Attributes.Add("OnFocus", "if(this.value=='请输入搜索内容') {this.value=''}");
        txtQuery.Attributes.Add("OnBlur", "if(this.value=='') {this.value='请输入搜索内容'}");
    }
    protected void btnQuery_Click(object sender, EventArgs e)
    {
        string keywords=txtQuery.Text;
        string classname = ddlClass.Text;
        Response.Redirect("SearchResult.aspx?keywords="+keywords+"&classname="+classname);
    }
}
